<template>
 <div style="padding: 8px 20px">
        <el-button v-hasPerm="['sys:dept:add']" :icon="CirclePlus" type="primary" @click="addDict(0)">新增字典</el-button>
    </div>
    <el-table :data="dictList" default-expand-all v-loading="loading" row-key="id" min-width="100%">
        <el-table-column label="字典名称" prop="code" align="center" width="100"></el-table-column>
        <el-table-column label="字典编码" prop="level" align="center" width="100"></el-table-column>
        <el-table-column label="字典" prop="createTime" width="200"></el-table-column>
        <el-table-column label="备注" prop="remark" width="200"></el-table-column>
        <el-table-column fixed="right" align="right" label="操作" width="160"></el-table-column>
    </el-table>
</template>

<script setup>
let loading = ref(true)
let dictList = ref([])
</script>